#ifndef FORMCHARTS_H
#define FORMCHARTS_H

#include <QWidget>
#include <QTimer>
#include <QTime>
#include <QtCharts/QChartView>
#include <QtCharts/QSplineSeries>
#include <QtCharts/QValueAxis>

//#include "curvechart.h"

#include <QDebug>

QT_CHARTS_USE_NAMESPACE

namespace Ui {
class FormCharts;
}

using namespace QtCharts;


class FormCharts : public QWidget
{
    Q_OBJECT
public:
    explicit FormCharts(QWidget *parent = 0);
    ~FormCharts();
    void setLeftRPM(int value);
    void setRightRPM(int value);

public slots:
    void timerUpdate(void);

private:
    Ui::FormCharts *ui;

    QChartView *chart_view;
    QChart *chart;
    QSplineSeries *series_rpm_left;
    QSplineSeries *series_rpm_right;

    int max_size;
};

#endif // FORMCHARTS_H
